package tq.com.tqteacher.view;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import java.security.PublicKey;

import tq.com.tqteacher.R;

public class TQHeader0ViewHold {
    private View view;
    private Context context;

    public TextView titleView;
    public TextView rightView;
    private ImageView backView;

    public TQHeader0ViewHold(Context c, View v){
        view = v;
        context = c;

        initView();
    }

    private void initView(){
        titleView = view.findViewById(R.id.titleText);
        rightView = view.findViewById(R.id.rightItem);
    }

    public void setTitle(String title){
        titleView.setText(title);
    }

    public void setRightTitle(String title){
        rightView.setText(title);
    }

    public void setBackClick(View.OnClickListener onClickListener){
        backView.setOnClickListener(onClickListener);
    }
}
